package com.wymobilearchitecture.study.recyclerview

import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.wy.w_ui.ui.recyclerview.WDataItem
import com.wymobilearchitecture.R

class TopTabDataItem(data: ItemData) : WDataItem<ItemData, RecyclerView.ViewHolder>(data) {

    override fun onBindData(holder: RecyclerView.ViewHolder, position: Int) {
        val  textView : TextView = holder.itemView.findViewById(R.id.recycler_item_text)
        textView.text = "2"
    }

    override fun getItemLayoutRes(): Int {
        return R.layout.recycler_item
    }
}